<!doctype html>
<html lang="zh">

<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>快速选中搜索助手 · 设置</title>
  <style>
    body {
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, \"PingFang SC\", \"Noto Sans SC\", \"Microsoft YaHei\", sans-serif;
      margin: 24px;
    }

    .card {
      max-width: 680px;
      border: 1px solid #e5e7eb;
      border-radius: 14px;
      padding: 20px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
    }

    h1 {
      font-size: 20px;
      margin: 0 0 16px;
    }

    label {
      display: block;
      margin: 12px 0 8px;
      font-weight: 600;
    }

    select,
    input[type=number],
    input[type=checkbox] {
      padding: 8px 10px;
      font-size: 14px;
      border: 1px solid #d1d5db;
      border-radius: 8px;
      width: 100%;
      box-sizing: border-box;
    }

    .row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .muted {
      color: #6b7280;
      font-size: 12px;
      margin-top: 6px;
    }

    button {
      margin-top: 16px;
      padding: 10px 14px;
      border: 0;
      border-radius: 10px;
      background: #111827;
      color: white;
      font-weight: 600;
      cursor: pointer;
    }

    button:disabled {
      opacity: .6;
      cursor: not-allowed;
    }
  </style>
</head>

<body>
  <div class="card">
    <h1>快速选中搜索助手 · 设置</h1>

    <label for="engine">默认搜索引擎</label>
    <select id="engine">
      <option value="bing">Bing</option>
      <option value="baidu">百度</option>
      <option value="google">Google</option>
    </select>
    <div class="muted">说明：在页面中选中文本后按 <b>Alt + 左键</b> 将在鼠标附近弹出该搜索引擎的小窗页面。</div>

    <label style="margin-top:16px">弹窗大小（像素）</label>
    <div class="row">
      <div>
        <label for="width">宽度</label>
        <input id="width" type="number" min="320" max="1200" step="10" />
      </div>
      <div>
        <label for="height">高度</label>
        <input id="height" type="number" min="240" max="1000" step="10" />
      </div>
    </div>

    <label for="openInPopup" style="margin-top:16px">显示方式</label>
    <div>
      <input id="openInPopup" type="checkbox" /> 在弹出小窗中打开（关闭则使用新标签页）
    </div>
    <!-- 在现有设置下方添加 -->
    <label for="modifierKey" style="margin-top:16px">修饰键</label>
    <select id="modifierKey">
      <option value="Alt">Alt</option>
      <option value="Ctrl">Ctrl</option>
      <option value="Shift">Shift</option>
      <option value="Meta">Meta(Win/Command)</option>
    </select>

    <label for="triggerKey" style="margin-top:16px">触发键</label>
    <select id="triggerKey">
      <option value="LeftClick">左键点击</option>
      <option value="RightClick">右键点击</option>
    </select>

    <button id="save">保存设置</button>
    <div id="status" class="muted"></div>
  </div>

  <script src="options.js"></script>
</body>

</html>